#include "frmtodo.h"
#include <QApplication>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QString fileName = qApp->applicationDirPath() + "/todo.txt";

    {
        QStringList args = a.arguments();
        if( args.size() > 1 ) {
            fileName = args[1];
        }
    }

    FrmTodo w(fileName);
    w.show();

    return a.exec();
}
